package com.cet.designpatterns.facade;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-09-13 21:36
 **/
public class Projector {

    private Projector() {

    }

    private static class SingletonInstance {
        private static Projector INSTANCE = new Projector();
    }

    public static Projector getInstance() {
        return SingletonInstance.INSTANCE;
    }

    public void on() {
        System.out.println("projector on");
    }

    public void off() {
        System.out.println("projector off");
    }

    public void focus() {
        System.out.println("projector is focusing ...");
    }

}
